using System.Threading;
namespace Legend.Threading
{
    /// <summary>
    /// Factory responsible for creating new synchronization manager instances.
    /// </summary>
    public interface ISynchronizationManagerFactory
    {
        /// <summary>
        /// Creates a new synchronization manager.
        /// </summary>
        /// <param name="recursionPolicy">The recursion policy to use.</param>
        /// <returns>A synchronization manager.</returns>
        ISynchronizationManager CreateSynchronizationManager(LockRecursionPolicy recursionPolicy);
    }
}
